<?php

$qwollowname = "Friend Rate";
$qwollowdescription = "This tests for the rate of friend requests during the life of the account. Severe failures will have added a new friend request every ten minutes (or less) since the creation of the account.";
$qwollowauthor = "Chirplace";
$qwollowauthorurl = "http://www.chirplace.com";
$qwollowavatar = "http://www.boostpost.com/chirplace.com/images/cplogo.gif";

//the return value indicates the degree of success.

function qwollowfy($Follower)
{

//minutes between friending. 

	//get the number of posts
	$numfriends = $Follower->friends_count;

	//calculate the age of the account
	$from_time=strtotime($Follower->created_at);
	$to_time=strtotime(date("D M j G:i:s T Y"));

	$minutediff = round(abs($to_time - $from_time) / 60,0);

	$followrate = round(($minutediff/$numfriends), 0);

	if ($followrate>100)
		$followrate = 100;

	return $followrate;
	
}

?> 
